class fish:
    fid=0
    name=' '
    def __init__(self,f,n):
        self.fid=f
        self.name=n
    def live(self):
        print("%s:分布与我国，栖息与江河、湖泊中。"%(self.name)) 
class freshwaterfish(fish):
    habit=''
    def __init__(self, f, n,h):
        fish.__init__(self,f,n)
        self.habit=h
    def live2(self):
        print("%s:分布于我国，栖息于江河、湖泊中。%s。"%(self.name,self.habit))
fish1=fish(1,'草鱼')
fish1.live()
fish2=freshwaterfish(2,'草鱼','属于食草鱼类')
fish2.live2()
